package de.lusiardi.webdav.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * http://www.webdav.org/specs/rfc4918.html#ELEMENT_lockscope
 *
 * @author Joachim Lusiardi
 */
@XmlRootElement(name = "lockscope")
@XmlAccessorType(XmlAccessType.FIELD)
public class LockScope {

    @XmlElements(value = {
        @XmlElement(name = "exclusive", type = Exclusive.class),
        @XmlElement(name = "shared", type = Shared.class)})
    private ExclusiveOrShared scope;

    public ExclusiveOrShared getScope() {
        return scope;
    }

    public void setScope(ExclusiveOrShared scope) {
        this.scope = scope;
    }
}
